Adding ADR-0009 - #1861
Adding ADR-0009#1861bendk wants to merge 1 commit into
Conversation
|
I'll state my preference up-front: I think we should be using handles. I don't like I don't like I slightly prefer |
|
I think the changes in #1823 and #1826 are good regardless of this decision, so the ADR doesn't mention them. Please speak up if you think some of those should be part of the ADR, or another one. This ADR might guide how some of that code looks, for example naming the variant |
This revisits the decision in `ADR-0005` and explores using going back to handle maps to pass objects across the FFI.
|
Just pushed some small changes to the text and added a document that tries to describe how the handlemaps would work in detail: https://github.com/mozilla/uniffi-rs/blob/6307aa0561312472557c8770da1042a7d74a24ad/docs/handles.md |
|
I'm going to close this one. We never came to agreement and I think that's fine. The current status quo is:
All of this seems okay and doesn't require changing in the short term. Also, my current thinking is that we don't need to design a single official way of doing things. I'd rather follow the model used for uniffi-bindgen-kotlin-jni and allow bindings to customize things a bit if they want. |
Use handle map handles to pass objects across the FFI,